package com.example.rmation.mapper;

import com.example.rmation.model.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User login(@Param("account") String account, @Param("password") String password);

    List<User> studentAll();

    User userByAccount(String account);

    int updateByAccountStatus(Integer id);

    List<User> studentLike(String name);
}